home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / vbcc / machines / amiga68k / vconfig / menu_compiler.c < prev    next >
Encoding:
Text File  |  1998-06-24  |  998 b   |  48 lines

  1. int compilerMenu(void)
  2. {
  3.     int retval = 0;
  4.  
  5.     printf("\fCompiler settings.\n");
  6.     printf("------------------\n");
  7.     printf("1. %s\n", nostdlibname[noStdLib]);
  8.     printf("2. %s\n", intermediatename[keepIntermediateFiles]);
  9.     printf("3. MaxErrors: %d\n", maxErrors);
  10.     printf("4. Stripfilename: %s\n", on_off2[stripfilename]);
  11.  
  12.     printf("\n");
  13.  
  14.     back_help_quit();
  15.  
  16.     switch(getch())
  17.     {
  18.         char buf[255];
  19.  
  20.         case '1': negate(noStdLib); break;
  21.  
  22.         case '2': negate(keepIntermediateFiles); break;
  23.  
  24.         case '3': printf("\nSpecify max errors: ");
  25.                   gets(buf);
  26.                   maxErrors = strtol(buf, NULL, 10);
  27.                   break;
  28.  
  29.         case '4': negate(stripfilename); break;
  30.  
  31.  
  32.         case 'h':
  33.         case 'H': help(COMPILER);
  34.  
  35.         case ESC:
  36.         case 'B':
  37.         case 'b': retval = 1; break; /* go out */
  38.  
  39.         case 'Q':
  40.         case 'q': exit(0); break;
  41.  
  42.     }
  43.  
  44.     return(retval);
  45. }
  46.  
  47.  
  48.